package com.food.service;

import com.food.dto.ShoppingCartDTO;
import com.food.entity.ShoppingCart;

import java.util.List;

public interface ShoppiingCartService {
    /**
     * 添加购物车
     * @param shoppingCartDTO
     * @return
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);


    /**
     * 查看购物车
     * @return
     */
    List<ShoppingCart> showShoppingCart();

    /**
     * 清空购物车
     * @return
     */
    void cleanShoppingCart();

    /**
     * 删除购物车单个商品
     * @return
     */
    void deleteShoppingById(ShoppingCartDTO shoppingCartDTO);
}
